<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\Database\Model\Events\Creating;
use Hyperf\DbConnection\Model\Model;
use Hyperf\Snowflake\Concern\Snowflake;

/**
 * @property int $id 
 * @property string $name 
 * @property int $sort 
 * @property int $status 
 */
class AcGroup extends Model
{
    /**
     * @var bool
     */
    public $timestamps = false;

    use Snowflake {
        creating as create;
    }

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'ac_groups';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
//    protected $casts = ['id' => 'integer', 'sort' => 'integer', 'status' => 'integer'];

    public function creating(Creating $event)
    {
        $this->create();
    }
}